// bitset::flip
#include <iostream>
#include <string>
#include <bitset>
using namespace std;

int main ()
{
  bitset<8> mybits (string("00010101"));

  
  cout << mybits.flip(0) << endl;  
  cout << mybits.flip(1) << endl;
  cout << mybits.flip(2) << endl;
  cout << mybits.flip(3) << endl;
  cout << mybits.flip(4) << endl;
  cout << mybits.flip(5) << endl;
  cout << mybits.flip(6) << endl;
  cout << mybits.flip(7) << endl;
  


  return 0;
}

